package com.example.tsproject.service;

import com.example.tsproject.entity.PageBean;
import com.example.tsproject.entity.Students;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Optional;

/**
* @author DELL
* @description 针对表【students】的数据库操作Service
* @createDate 2024-09-24 21:13:24
*/
public interface StudentsService extends IService<Students> {

    public Students findByEmail(String email);

    Optional<Students> findStudentsJudge(String student_number, String password);

    Students findStudents(String student_number);

    List<Students> findStudentsByClass(String stuclass);

    PageBean<Students> findAllStudents(Integer pageNum, Integer pageSize, String name, String id, String stuClass);

    void delete(String id);

    void add(String studentNumber, String name, String password, String stuclass, String email);
}
